package com.yh.correct.service;

import java.util.List;
import java.util.Map;

import com.yh.correct.model.Chat;
import com.yh.correct.model.Page;

/**
 * 个人谈话接口服务
 * 
 * @author 陈帅
 *
 */

public interface IChatService {
	/**
	 * 查询单个谈话明细
	 * 
	 * @param Chat
	 * @return 
	 */
   public Map<String,Object> getChat(Chat c) throws Exception;
	/**
	 * 增加新谈话
	 * 
	 * @param Chat
	 */
	public int addChat(Chat c) throws Exception;
	
	/**
	 * 删除谈话
	 *
	 * @param Chat
	 */
	public int delChat(Chat c) throws Exception;
	/**
	 * 修改谈话
	 * 
	 * @param Chat
	 */
	public int editChat(Chat  c) throws Exception;
	
	/**
	 * 模糊查询匹配的谈话列表
	 * 
	 * @param Chat
	 * @return
	 */
	public Page getLikeChats(Map<String,Object>  condition) throws Exception; 
	/**
	 * 获取所有记录,导出excel
	 * @return
	 */
	public List<Map<String,Object>> getAllC() throws Exception;	
}
